package stoyanov.calculator;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;

public class TabMenu extends Interface {


	final TabFolder tabMenuFolder = new TabFolder(shell, SWT.BORDER | SWT.TOP);
	GridData tabData = new GridData();
	 
	TabItem standartItem = new TabItem(tabMenuFolder, SWT.FILL);
	TabItem scientificItem = new TabItem(tabMenuFolder, SWT.FILL);
	TabItem programmerItem = new TabItem(tabMenuFolder, SWT.FILL);
	
	public void createTabMenu(final Shell shell, final Display display){

	    tabData.horizontalAlignment = SWT.FILL;
	    tabData.verticalAlignment = SWT.FILL;
	    
	    tabData.grabExcessHorizontalSpace = true;
	    tabData.grabExcessVerticalSpace = true;
	    
	    tabMenuFolder.setLayoutData(tabData);
		
		standartItem.setText("Standart");
		standartItem.setToolTipText("Standart Calculator Mode");
		

		scientificItem.setText("Scientific");
		scientificItem.setToolTipText("Scientific Calculator Mode");
		
		programmerItem.setText("Programmer");
		programmerItem.setToolTipText("Programmer Calculator Mode");
		
		tabMenuFolder.pack();
	}
}
